package com.itheima.stringdemo;
/*
      //startWith()
        //toLowerCase();
        //toUpperCase();
        //trim();
 */
public class Demo06 {

    public static void main(String[] args) {
        String s="魑魅魍魉吴亦凡";
        System.out.println(s.startsWith("魑魅魍魉"));
        System.out.println(s.startsWith("吴亦凡"));
        String s1="Abc";
        String s2 = s1.toLowerCase();
        System.out.println(s2);
        System.out.println(s2.toUpperCase());

        //   //trim();  删除字符串前后的空格
        String s4="            吴 亦 凡           ";
        System.out.println(s4);
        String replace = s4.replace(" ", "");
        System.out.println(replace);
        System.out.println(s4.trim());

    }
}
